package ooday02test02;

public class Dog extends Animal{
    //

    public Dog() {
    }

    public Dog(String name, int age, String color) {
        super(name, age, color);
    }
    //重写方法
    public void eat(){
        System.out.println(color+"色的、"+age+"岁的狗狗，名为："+name+"正在吃狗粮");
    }
    //特有方法
    public void lookHome(){
        System.out.println("狗狗："+name+"在看家");
    }

}
